package com.itqf.factorybean;

import com.itqf.pojo.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * projectName: springframeworkgp8
 *
 * @author: 赵伟风
 * time: 2021/8/3 10:07
 * description:
 */
public class UserFactoryBean implements FactoryBean<User> {

    @Override
    public User getObject() throws Exception {

        User user = new User();
        user.setAge(99);
        user.setName("哈哈哈哈");
        return user;
    }


    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
